#!/usr/bin/ruby -Ku
# -*- coding: utf-8 -*-
require 'test/unit'
require 'm3g'

class Test_Exception < Test::Unit::TestCase
  def setup
  end

  def teadown
  end

  def test_default_values

    assert_raise (M3G::IllegalStateException) {
      raise M3G::IllegalStateException , "Perrine-H. Clostermann"
    }

    assert_raise (M3G::ArithmeticException) {
      raise M3G::ArithmeticException , "Lynette Bishop"
    }

    assert_raise (M3G::IOException) {
      raise M3G::IOException , "Francesca Lucchini"
    }

    assert_raise (M3G::IndexOutOfBoundsException) {
      raise M3G::IndexOutOfBoundsException , "Charlotte E. Yeager"
    }

    assert_raise (M3G::IllegalStateException) {
      raise M3G::IllegalStateException , "Minna-Dietlinde Wilcke"
    }

    assert_raise (M3G::OpenGLException) {
      raise M3G::OpenGLException , "Erica Hartmann"
    }

    assert_raise (M3G::NullPointerException) {
      raise M3G::NullPointerException , "Eila Ilmatar Juutilainen"
    }

    assert_raise (M3G::SecurityException) {
      raise M3G::SecurityException , "Sanya V. Litvyak"
    }

    assert_raise (M3G::NotImplementedException) {
      raise M3G::NotImplementedException, "Gertrud Barkhorn"
    }

    assert_raise (M3G::InternalException) {
      raise M3G::InternalException, "Nikka Edvardine Katajainen"
    }
  end
end
